/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import Server.chatServerImp;
import java.rmi.*;
import java.rmi.registry.*;
/**
 *
 * @author labib
 */
public class ServerApp {
    public ServerApp()
    {
         try {
            chatServerImp imp=new chatServerImp();
            Registry reg=LocateRegistry.getRegistry();
            reg.rebind("register",imp);
           // reg.rebind("unregister",imp);
            //reg.rebind("tellother",imp);
             
        } catch (RemoteException ex) {
           ex.printStackTrace();
        }
       
    }
    public static void main(String[] args) {
        new ServerApp();
    }

}
